package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchMultiPlantComprehensiveReportsMapper;
import com.ruoyi.system.domain.DispatchMultiPlantComprehensiveReports;
import com.ruoyi.system.service.IDispatchMultiPlantComprehensiveReportsService;

/**
 * 多水厂综合报Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchMultiPlantComprehensiveReportsServiceImpl implements IDispatchMultiPlantComprehensiveReportsService 
{
    @Autowired
    private DispatchMultiPlantComprehensiveReportsMapper dispatchMultiPlantComprehensiveReportsMapper;

    /**
     * 查询多水厂综合报
     * 
     * @param multiPlantComprehensiveReportsId 多水厂综合报主键
     * @return 多水厂综合报
     */
    @Override
    public DispatchMultiPlantComprehensiveReports selectDispatchMultiPlantComprehensiveReportsByMultiPlantComprehensiveReportsId(Long multiPlantComprehensiveReportsId)
    {
        return dispatchMultiPlantComprehensiveReportsMapper.selectDispatchMultiPlantComprehensiveReportsByMultiPlantComprehensiveReportsId(multiPlantComprehensiveReportsId);
    }

    /**
     * 查询多水厂综合报列表
     * 
     * @param dispatchMultiPlantComprehensiveReports 多水厂综合报
     * @return 多水厂综合报
     */
    @Override
    public List<DispatchMultiPlantComprehensiveReports> selectDispatchMultiPlantComprehensiveReportsList(DispatchMultiPlantComprehensiveReports dispatchMultiPlantComprehensiveReports)
    {
        return dispatchMultiPlantComprehensiveReportsMapper.selectDispatchMultiPlantComprehensiveReportsList(dispatchMultiPlantComprehensiveReports);
    }

    /**
     * 新增多水厂综合报
     * 
     * @param dispatchMultiPlantComprehensiveReports 多水厂综合报
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchMultiPlantComprehensiveReports(DispatchMultiPlantComprehensiveReports dispatchMultiPlantComprehensiveReports)
    {
        return dispatchMultiPlantComprehensiveReportsMapper.insertDispatchMultiPlantComprehensiveReports(dispatchMultiPlantComprehensiveReports);
    }

    /**
     * 修改多水厂综合报
     * 
     * @param dispatchMultiPlantComprehensiveReports 多水厂综合报
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchMultiPlantComprehensiveReports(DispatchMultiPlantComprehensiveReports dispatchMultiPlantComprehensiveReports)
    {
        return dispatchMultiPlantComprehensiveReportsMapper.updateDispatchMultiPlantComprehensiveReports(dispatchMultiPlantComprehensiveReports);
    }

    /**
     * 批量删除多水厂综合报
     * 
     * @param multiPlantComprehensiveReportsIds 需要删除的多水厂综合报主键
     * @return 结果
     */
    @Override
    public int deleteDispatchMultiPlantComprehensiveReportsByMultiPlantComprehensiveReportsIds(Long[] multiPlantComprehensiveReportsIds)
    {
        return dispatchMultiPlantComprehensiveReportsMapper.deleteDispatchMultiPlantComprehensiveReportsByMultiPlantComprehensiveReportsIds(multiPlantComprehensiveReportsIds);
    }

    /**
     * 删除多水厂综合报信息
     * 
     * @param multiPlantComprehensiveReportsId 多水厂综合报主键
     * @return 结果
     */
    @Override
    public int deleteDispatchMultiPlantComprehensiveReportsByMultiPlantComprehensiveReportsId(Long multiPlantComprehensiveReportsId)
    {
        return dispatchMultiPlantComprehensiveReportsMapper.deleteDispatchMultiPlantComprehensiveReportsByMultiPlantComprehensiveReportsId(multiPlantComprehensiveReportsId);
    }
}
